## build CMakeList of the executable file

cmake_minimum_required(VERSION 3.16)

message(STATUS "target module --.")

file(GLOB SUBDIRS "*/")
foreach(SUBDIR ${SUBDIRS})
    string(REGEX REPLACE "/$" "" SUBDIR ${SUBDIR})
    if (EXISTS ${SUBDIR}/CMakeLists.txt)
        add_subdirectory(${SUBDIR})
    endif()
endforeach()




